package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * @author: yuqian
 * @date: 2019/6/28 14:56
 * @desrcption: 表单名称重名检查
 */
@Getter
@Setter
@ToString
public class MenuNameCheckDTO extends BaseDTO {

    private static final long serialVersionUID = 6647673814849924565L;

    @NotBlank(message = "{dto.msg.menuNameCheck.name.NotBlank}")
    @Length(max = 20, message = "{dto.msg.menuNameCheck.name.Length}")
    private String name;

    @NotBlank(message = "{dto.msg.menuNameCheck.name.NotBlank}")
    @Length(max = 50, message = "{dto.msg.menuNameCheck.nameEn.Length}")
    private String nameEn;

    /**
     * 1表示saas 2表示paas
     */
    @NotNull(message = "{dto.msg.menuNameCheck.saasMark.NotNull}")
    private Integer saasMark;
    /**
     * saas业务类型
     */
    private Integer businessType;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.menuNameCheck.appId.NotNull}")
    private Long appId;
}
